package patterns.state;

/**
 * Created by lenovo on 2016/12/9 0009.
 * 开启状态的状态类，实现了IState接口
 */
public class StartState implements IState{
    @Override
    public void doAction(Context context) {
        System.out.println("音乐播放器，开启状态");
        context.setState(this);
    }
    public String toString(){
        return "Start State";
    }
}
